//
//  OrderTotalPriceCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2018/1/10.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "OrderTotalPriceCell.h"

@interface OrderTotalPriceCell ()
@property (weak, nonatomic) IBOutlet UILabel *leftFirstLabel;
@property (weak, nonatomic) IBOutlet UILabel *leftTwoLabel;
@property (weak, nonatomic) IBOutlet UILabel *rightOneLabel;
@property (weak, nonatomic) IBOutlet UILabel *rightMiddleLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsCountLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;

@end

@implementation OrderTotalPriceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.leftFirstLabel.font = MYFONT(15);
    
    self.leftTwoLabel.font = MYFONT(15);
    
    self.leftTwoLabel.textColor = [UIColor redColor];
    
    self.rightOneLabel.font = MYFONT(17);
    
    self.rightOneLabel.textColor = [UIColor redColor];
    
    self.rightMiddleLabel.font = MYFONT(14);
    
    self.rightMiddleLabel.textColor = darkGray;
    
    self.goodsCountLabel.font = MYFONT(15);
    
    self.bottomMargin.constant = 0;
    
    // Initialization code
}


- (void)setModel:(OrderSureModel *)model{
    
    _model = model;
    
    self.leftTwoLabel.text = [NSString stringWithFormat:@"%@P",_model.total_price];
    
    self.rightOneLabel.text = [NSString stringWithFormat:@"¥ %@",_model.total_price_rmb];
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
